package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.AgentWithdraw;
import com.weixing.mall.provider.model.dto.AgentWithdrawAuditDto;
import com.weixing.mall.provider.model.enums.AgentWithdrawAuditEnum;
import com.weixing.mall.provider.model.query.AgentWithdrawQuery;
import com.weixing.mall.provider.model.vo.AgentWithdrawSettleVo;
import com.weixing.mall.provider.model.vo.AgentWithdrawVo;
import com.weixing.mall.provider.model.vo.FrontAgentWithdrawSettleVo;
import com.weixing.mall.provider.model.vo.WithdrawRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 代理商模块-代理商提现表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface AgentWithdrawMapper extends BaseMapper<AgentWithdraw> {
    IPage<AgentWithdrawVo> selectListOfPage(@Param("pg") Page page, @Param("qs")AgentWithdrawQuery agentWithdrawQuery);

    AgentWithdrawSettleVo selectAgentSettle(Long id);

    FrontAgentWithdrawSettleVo withdrawInfo(long currentUserId);

    IPage<WithdrawRecordVo> withdrawRecord(@Param("pg") Page initMpPage, long currentUserId);
    List<WithdrawRecordVo> withdrawRecord(long currentUserId);

    List<String> selectBankHistory(@Param("agentId")Long agentId);
}
